﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="model_list.aspx.cs" Inherits="AutoFix.model_list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="AdditionalPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="MessagePlaceHolder" runat="server">
    Shows all the models that are added to the site
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
        <div id="pageActionMessage" runat="server"></div>
    <div class="item">
        
        <asp:DataList ID="dtlModelList" runat="server" RepeatDirection="Horizontal" OnItemCommand="dtlModelList_ItemCommand" OnItemDataBound="dtlModelList_ItemDataBound">
            <ItemTemplate>
                <asp:HiddenField ID="hdnModelTypeName" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.VehicleModelTypeName") %>' />
                <asp:HiddenField ID="hdnModelID" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.VehicleModelID") %>' />
                <div class="item-box-holder">
            <div class="item-holder-one">
          
                <div class="small-image">
                    <asp:Image ID="imgModelImage" CssClass="small-image" runat="server" ImageUrl='<%# DataBinder.Eval(Container, "DataItem.VehicleModelTypeImageURL") %>'/></div>
                <div class="section-right">
                    <asp:Label ID="lnkModelName" runat="server" CssClass="text-size-two" Text='<%# DataBinder.Eval(Container, "DataItem.VehicleModelName") %>'/>
                    <br /><br />
                    <p class="text-size-one"><%# DataBinder.Eval(Container, "DataItem.VehicleModelTypeName") %></p>
                </div>

            </div>
            <div class="common-holder"><asp:Button ID="btnDeleteModel" runat="server" Text="Delete Model" CssClass="remove-button" CommandName="Delete" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.VehicleModelTypeID") %>' />
               
                <div class="clear"></div>
            </div>
        </div>
            </ItemTemplate>
        </asp:DataList>
        <div class="clear"></div>
    </div>
</asp:Content>
